﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace CsPotrace
{
    public class IndexedMap
    {
        /**
     *
     */
        public int width;

        /**
         *
         */
        public int height;

        /**
         * The allocated array of pixels
         */
        int[,] pixels;

        /**
         *
         */
        public int nrColors;

        /**
         * Color look up table
         */
        public Color[] clut;

        public IndexedMap(int width, int height)
        {
            clut = new Color[256];
            this.width = width;
            this.height = height;
            pixels = new int[width, height];
        }
        public void SetPixel(int x, int y, int index)
        {
            this.pixels[x, y] = index;
        }
        public int GetPixel(int x, int y)
        {
            return this.pixels[x, y];
        }
    }
}
